#！/bin/bash

rpm -qa|grep mysql &>/dev/null
if [ $? -eq 0 ]; then
    rpm -qa|grep mysql|xargs rpm -e --nodeps
fi

rpm -qa|grep mariadb &>/dev/null
if [ $? -eq 0 ]; then
    rpm -qa|grep mariadb|xargs rpm -e --nodeps
fi